# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"

WANT_AUTOMAKE="1.10"

inherit git eutils autotools

DESCRIPTION="Quartz GTK+2 Engine"

HOMEPAGE="http://gtk-quartz.sourceforge.net"

EGIT_REPO_URI="git://github.com/rcaelers/gtk-quartz-engine.git"
EGIT_BRANCH="master"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86-macos ~x64-macos"
IUSE=""

RDEPEND=">=x11-libs/gtk+-2.8"
DEPEND="${RDEPEND}
	dev-util/pkgconfig"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	elibtoolize
	eautoreconf
}

src_configure() {
	econf --enable-maintainer-mode || die "econf failed"
}

src_compile() {
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"

	dodoc AUTHORS ChangeLog NEWS README TODO
}
